package com.cqyanyu.yanyu;

import android.annotation.SuppressLint;
import android.app.Application;

import com.cqyanyu.yanyu.http.XHttpManagerImpl;

import org.xutils.x;


/**
 * Created by cheng on 2016/6/13.
 */
@SuppressLint("Registered")
public class XApplication extends Application {
    private Object object;

    @Override
    public void onCreate() {
        super.onCreate();

        x.Ext.setDebug(BuildConfig.DEBUG); // 是否输出debug日志, 开启debug会影响性能.
        x.Ext.init(this);
        XHttpManagerImpl.registerInstance();
    }

    public <T extends Object> T getObject() {
        return (T) object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
